﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OffersQuickView.ascx.cs" Inherits="Gollie.Controls.OffersQuickView" %>
<%@ Register Src="~/Controls/VendorPresenter.ascx" TagPrefix="uc1" TagName="VendorPresenter" %>
<%@ Register Src="~/Controls/OrderBasket.ascx" TagPrefix="uc1" TagName="OrderBasket" %>

<p class="title">Beschikbare deals</p>
<table style="width:100%">
    <tr>
        <td style="vertical-align:bottom;"><span>Zoek op naam:</span><br /><asp:TextBox ID="tbSearch" runat="server"></asp:TextBox><asp:ImageButton ID="btnSearch" runat="server" ImageUrl="~/Images/search-icon2.png" Width="38" Height="24" style="margin-bottom:-5px;" OnClick="btnSearch_Click" /></td>
        <td style="vertical-align:bottom; text-align:right; width: 1%; white-space:nowrap"><uc1:OrderBasket runat="server" ID="OrderBasketControl" /></td>
    </tr>
</table>

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="0" ForeColor="#333333" GridLines="None"  HorizontalAlign="Left" ShowHeaderWhenEmpty="True" Width="500" AllowSorting="true" OnSorting="GridView1_Sorting" OnRowDataBound="GridView1_RowDataBound">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:TemplateField HeaderText="">
              <ItemTemplate>
                <asp:HiddenField ID="fldVendorId" runat="server" Value='<%#Eval("VendorId")%>' />
                <asp:HiddenField ID="fldBedrijfsnaam" runat="server" Value='<%#Eval("Bedrijfsnaam")%>' />
                <asp:HiddenField ID="fldWebsite" runat="server" Value='<%#Eval("Website")%>' />
                <asp:HiddenField ID="fldPlaats" runat="server" Value='<%#Eval("Plaats")%>' />
                <asp:HiddenField ID="fldStraat" runat="server" Value='<%#Eval("Straat")%>' />

             </ItemTemplate>
                <HeaderStyle CssClass="offer-grid-header-quick" />
                <ItemStyle CssClass="offer-grid-vendor" />
            </asp:TemplateField>

            <asp:BoundField DataField="Bedrijfsnaam" HeaderText="Aanbieder" SortExpression="Bedrijfsnaam">
            <HeaderStyle CssClass="offer-grid-header-quick" />
            <ItemStyle CssClass="offer-grid-cell-quick" />
            </asp:BoundField>

            <asp:BoundField DataField="Plaats" HeaderText="Plaats" SortExpression="Plaats">
            <HeaderStyle CssClass="offer-grid-header-quick" />
            <ItemStyle CssClass="offer-grid-cell-quick" />
            </asp:BoundField>

            <asp:BoundField DataField="Count" HeaderText="Aantal deals">
            <HeaderStyle CssClass="offer-grid-header-quick-center" />
            <ItemStyle CssClass="offer-grid-cell-quick-center" />
            </asp:BoundField>
         </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#000000" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#000000" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" Height="40"/>
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
